<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>

<table width="1000" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="ffeac7">
  <tr>
    <td height="91" align="center" valign="top" bgcolor="fffbed"><table width="98%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="30" align="left" class="tit">今日十大景区</td>
      </tr>
    </table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <?php 
          foreach ($scenes as $v):
          	$sceneInfo = ScenePeer::retrieveByPK($v->getObjectId());
          ?>
          <td align="center">
          	<a href="/scene/detail?id=<?php echo $sceneInfo->getId()?>">
          		<img src="<?php echo SITE_URL.'uploads/'.$sceneInfo->getImg()?>" width="80" height="80" border="0" class="img" />
          	</a><br>
          </td>
          <?php endforeach;?>
        </tr>
        <tr>
          <?php 
          foreach ($scenes as $v):
          	$sceneInfo = ScenePeer::retrieveByPK($v->getObjectId());
          ?>
          <td align="center" height="25">
          	<a href="/scene/detail?id=<?php echo $sceneInfo->getId()?>" class="imgword">
          		<?php echo $sceneInfo->getName()?>
          	</a>
          </td>
          <?php endforeach; ?>
        </tr>
    </table></td>
  </tr>
</table>
<table width="200" height="5" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="2%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg"><img src="<?php echo SITE_URL?>img/made/made_r5_c2.jpg" width="6" height="33" /></td>
    <td width="57%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="weizhi">您当前所在的位置：<a href="#" class="weizhi">首页</a> &gt;&gt; <a href="#" class="weizhi">景区</a>名 </td>
    <td width="35%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="white">公告：暂无任何公告</td>
    <td width="5%" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg" class="login">&nbsp;</td>
    <td width="1%" align="right" background="<?php echo SITE_URL?>img/made/made_r5_c3.jpg"><img src="<?php echo SITE_URL?>img/made/made_r5_c23.jpg" width="9" height="33" /></td>
  </tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  height="8"></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="24%" height="553" valign="top"><table width="231" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/dp/dianp_r2_c2.jpg" width="230" height="8" /></td>
      </tr>
    </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">

        <tr>
          <td height="34" valign="top" background="<?php echo SITE_URL?>img/dp/dianp_r5_c2.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center">
              	<div id="mapObj" class="view" style="width:200px;height:137px"></div>
				<script src="<?php echo SITE_URL?>/js/map.js" type="text/javascript"></script>
				<SCRIPT LANGUAGE="JavaScript">
					<?php if($sInfo->getXy()){?>
						var points = point = new MPointOverlay(new MLatLng(<?php echo $sInfo->getXy();?>), "<?php echo $sInfo->getName();?>"); 
						mapObj.addOverlay(point, true); 
					<?php } ?>
				</script>
              </td>
            </tr>
            <tr>
              <td height="15"></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="230" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r14_c2.jpg" width="230" height="10" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>     
	   <table width="229" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="180" valign="top" background="<?php echo SITE_URL?>img/dp/dianp_r16_c3.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="25" align="left" class="login">景区评价：</td>
            </tr>
            <tr>
              <td height="25" align="left" class="login"><ul class="star-rating">
<li class="current-rating5">Currently 2.5/5 Stars.</li>
<li><a href="#" title="1 star out of 5" class="one-star">1</a></li>
<li><a href="#" title="2 stars out of 5" class="two-stars">2</a></li>
<li><a href="#" title="3 stars out of 5" class="three-stars">3</a></li>
<li><a href="#" title="4 stars out of 5" class="four-stars">4</a></li>
<li><a href="#" title="5 stars out of 5" class="five-stars">5</a></li>
</ul></td>
            </tr>
            <tr>
              <td align="left" class="white">景区介绍看看就知道了哈，自己想想看是怎么会事情，（本在、处最多不能超过100字）</td>
            </tr>
            
          </table></td>
        </tr>
      </table>
	  	   <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r16_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>&nbsp;&nbsp;<span class="tit">* 我去过实地</span></td>
              <td class="tit"><a href="javascript:been(<?php echo $sInfo->getId()?>)" class="titsmall">我去过</a></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg" height="5"></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="5"></td>
              </tr>
            </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <?php 
              	foreach ($beenUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$v->getUserId()."&size=small"?>" width="38" height="38" class="headimg" /><br />
                </td>
                <?php endforeach; ?>
              </tr>
              <tr>
                <?php 
              	foreach ($beenUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td align="center" height="25">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"class="imgword"><?php echo $userInfo['username']?></a>
                </td>
               	<?php endforeach; ?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r22_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r16_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="70%">&nbsp;&nbsp;<span class="tit">* 想去的人</span></td>
                <td width="30%" class="tit"><a href="javascript:go(<?php echo $sInfo->getId()?>)" class="titsmall">我想去</a></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg" height="5"></td>
        </tr>
        <tr>
          <td background="<?php echo SITE_URL?>img/made/made_r18_c1.jpg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="5"></td>
                </tr>
              </table>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              	<?php 
              	foreach ($goUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td align="center">
                	<img src="<?php echo SITE_URL."ucenter/avatar.php?uid=".$v->getUserId()."&size=small"?>" width="38" height="38" class="headimg" /><br />
                </td>
                <?php endforeach; ?>
              </tr>
              <tr>
              	<?php 
              	foreach ($goUsers as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td align="center" height="25">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"class="imgword"><?php echo $userInfo['username']?></a>
                </td>
               	<?php endforeach; ?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r22_c1.jpg" width="231" height="7" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r15_c1.jpg" width="234" height="7" /></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r16_c1.jpg"><table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100%" height="30" align="left" class="tit">活动</td>
              </tr>

              <tr>
                <td height="25" align="left"><span class="word">大邑一日游</span><span class="yh">【正在报名】</span></td>
              </tr>
              <tr>
                <td height="25">&nbsp;</td>
              </tr>
              <tr>
                <td height="25">&nbsp;</td>
              </tr>
              <tr>
                <td height="25">&nbsp;</td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r18_c1.jpg" width="234" height="6" /></td>
        </tr>
      </table>
      <table width="231" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r15_c1.jpg" width="234" height="7" /></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/photo/jq_photo_r16_c1.jpg"><table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30" colspan="2" align="left" class="tit">好评店铺</td>
              </tr>
              <?php foreach ($hotEaterys as $v): ?>
              <tr>
                <td width="51%" height="25" align="left" class="word">
                	<a href="/eatery/index?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <td width="49%" class="yh">电话：<?php echo $v->getTel()?></td>
              </tr>
              <?php endforeach;?>
          </table></td>
        </tr>
      </table>
      <table width="234" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/photo/jq_photo_r18_c1.jpg" width="234" height="6" /></td>
        </tr>
      </table>
    </td>
    <td width="76%" align="center" valign="top"><table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r9_c7.jpg" width="749" height="7" /></td>
        </tr>
      </table>
      <table width="749" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/dp/dianp_r10_c7.jpg"><table width="95%" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="30" colspan="5" align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="89%" class="tit"><a href="jq_photobox.html">景区相册</a></td>
                    <td width="11%" class="titsmall"><a href="/GalleryPhotos/create?type=scene&id=<?php echo $sceneId?>">我要发布</a></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <?php foreach ($gallerys as $v):?>
              <td><img src="<?php echo SITE_URL.'uploads/'.$v->getCover()?>" width="130" height="85" class="img" /></td>
              <?php endforeach;?>
            </tr>
            <tr>
              <?php foreach ($gallerys as $v):?>
              <td height="25" align="center" class="yh">
              	<a href="/GalleryPhotos/index?type=scene&id=<?php echo $v->getId()?>"><?php echo $v->getDes()?></a>
              </td>
              <?php endforeach;?>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/dp/dianp_r17_c7.jpg" width="749" height="7" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r1_c1.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="51" align="center" valign="top" background="<?php echo SITE_URL?>img/js/jq_index_r3_c1.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="83%" height="30" align="left" class="tit">必须去的景点</td>
              <td width="17%" class="titsmall"><a href="/SceneSpot/create?sceneid=<?php echo $sceneId?>">我也发现一个</a></td>
            </tr>
          </table>
          	<?php 
          	foreach ($hotSceneSpots as $v):
          		$userInfo = getUserById($v->getUserId());
          	?>
            <table width="95%" height="60" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="9%">
                	<a href="/sceneSpot/intro?id=<?php echo $v->getId()?>" alt="<?php echo $v->getName()?>" >
                		<img src="<?php echo SITE_URL.'uploads/'.$v->getImg()?>" width="50" height="35" border="0" class="img" />
                	</a>
                </td>
                <td width="18%" class="titsmall">
                	<a href="/sceneSpot/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <td width="45%" class="word"><?php echo $v->getDes()?></td>
                <td width="28%"><span class="word">由</span><span class="yh">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"><?php echo $userInfo['username']?></a>
                </span><span class="word">于08年11月1日发现</span></td>
              </tr>
            </table>
            <table width="95%" bgcolor="#F3F2DA" height="1" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td></td>
              </tr>
            </table>
            <?php endforeach;?>
            </td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r5_c1.jpg" width="746" height="6" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r30_c10.jpg" width="746" height="11" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>img/made/made_r32_c10.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="82%" height="30" align="left" class="tit">必须去吃的美食</td>
              <td width="18%" class="titsmall">我也发现个好吃的</td>
            </tr>
          </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
              	<?php 
              	foreach ($hotFoods as $v):
              		$imgsArray = explode("|",$v->getImg());
              	?>
                <td align="center">
                	<a href="/food/intro?id=<?php echo $v->getId()?>">
                		<img src="<?php echo SITE_URL.'uploads/'.$imgsArray['0']?>" alt="<?php echo $v->getName()?>" width="70" height="51" border="0" class="img" />
                	</a>
                </td>
                <?php endforeach;?>
              </tr>
              
              <tr>
              	<?php foreach ($hotFoods as $v):?>
                <td height="25" align="center" class="word">
                	<a href="/food/intro?id=<?php echo $v->getId()?>"><?php echo $v->getName()?></a>
                </td>
                <?php endforeach;?>
              </tr>
              <tr>
              	<?php 
              	foreach ($hotFoods as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <td height="25" align="center"><span class="word">由</span><span class="yh">
                	<a href="<?php echo SNS_URL.'/../space.php?uid='.$v->getUserId()?>"><?php echo $userInfo['username']?></a>
                </span><span class="word">发现</span></td>
                <?php endforeach;?>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/made/made_r39_c10.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r1_c1.jpg" width="746" height="9" /></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8" align="center" background="<?php echo SITE_URL?>img/js/jq_index_r3_c1.jpg"><table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="85%" height="30" align="left"  class="tit">网友话题</td>
                <td width="15%" align="left"><span class="titsmall"><a href="/scene/intro?id=<?php echo $sInfo->getId()?>">我有话说</a></span></td>
              </tr>
            </table>
              <table width="95%" border="0" cellspacing="0" cellpadding="0">
              	<?php 
              	foreach ($comments as $v):
              		$userInfo = getUserById($v->getUserId());
              	?>
                <tr>
                  <td width="77%" height="25" align="left" class="word"><?php echo substr($v->getContent(),0,30)?></td>
                  <td width="23%" class="yh"><?php echo $userInfo['username']?></td>
                </tr>
                <?php endforeach;?>
            </table></td>
        </tr>
      </table>
      <table width="746" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="8"><img src="<?php echo SITE_URL?>img/js/jq_index_r5_c1.jpg" width="746" height="6" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<script>
function go(id){
	$.get('/scene/go',{id:id,type:'scene'},function(msg){
		location.reload();
	});
}
function been(id){
	$.get('/scene/been',{id:id,type:'scene'},function(msg){
		location.reload();
	});
}
</script>